Systems for detecting a headless browser executing on a client computer

ABSTRACT

In an embodiment, a computer system is configured to improve security of server computers interacting with client computers through an intermediary computer, and comprising: a memory comprising processor logic; one or more processors coupled to the memory, wherein the one or more processors execute the processor logic, which causes the one or more processors to: intercept, from a server computer, one or more original instructions to be sent to a browser being executed on a client computer; inject, into the one or more original instructions, one or more browser detection instructions, which when executed cause one or more operations to be performed by an execution environment on the client computer and send a result that represents an internal state of the execution environment after performing the one or more operations to the intermediary computer; send the one or more original instructions with the one or more browser detection instructions to the browser; receive the result and determine whether the browser is a legitimate browser, or a headless browser, based, at least in part, on the result.

BENEFIT CLAIM

This application claims the benefit as a Continuation of U.S. patentapplication Ser. No. 14/859,084, filed Sep. 18, 2015, which claims thebenefit under 35 U.S.C. 119(e) of provisional application 62/053,022,filed Sep. 19, 2014, the entire contents of which are herebyincorporated by reference as if fully set forth herein, under 35 U.S.C.§ 120. The applicant(s) hereby rescind any disclaimer of claim scope inthe parent application(s) or the prosecution history thereof and advisethe USPTO that the claims in this application may be broader than anyclaim in the parent application(s).

FIELD OF THE DISCLOSURE

The present disclosure generally relates to security techniquesapplicable to client/server systems, and relates more specifically totechniques for detecting whether a client computer interacting withserver computers through an intermediary computer is a headless browser(also referred to a bot) or a browser operated by a legitimate user.SUGGESTED GROUP ART UNIT: 2447; SUGGESTED CLASSIFICATION: 709/217.

BACKGROUND

The approaches described in this section are approaches that could bepursued, but not necessarily approaches that have been previouslyconceived or pursued. Therefore, unless otherwise indicated, it shouldnot be assumed that any of the approaches described in this sectionqualify as prior art merely by virtue of their inclusion in thissection.

Browsers are powerful computer program applications that may request andexecute instructions received from a web server to generate complex userinterfaces that are presented to a user through one or more devices,such as a monitor or speakers. In response to input from a userindicating that the user selected an object defined in the instructions,a browser may send a request based on the selected object to the webserver. The request may be a request for data or include data to beprocessed by the web server. For example, a browser may present a webpage from a web server that defines a form, a user may enter data intoone or more fields in the form, select a submit button. In response thebrowser may generate request that includes the data entered into the oneor more fields, and send the request to the web server.

Attackers may use software, often referred to as a “bot” or “headlessbrowser”, which imitates a browser and a user by receiving instructionsfrom a web server and autonomously generating requests based on thoseinstructions. For example, a bot may receive a web page, gather data inone or more objects defined in the web page, and generate a request foranother web page to gather additional data, as if a user using a browserwas requesting a new web page. Also for example, a bot may generate andsend a request with data assigned to one or more parameters thatcorrespond to fields in a web page to simulate a user submitting data toa web server through a browser.

Attackers may use bots to commit many types of unauthorized acts, crimesor computer fraud, such as web site or content scraping, ratingsmanipulation, fake account creation, reserving rival goods attacks,ballot stuffing attacks, password snooping, vulnerability assessments,brute force attacks, click fraud, DDoS attacks, bidding wars, and systemfingerprinting attacks. As a specific example, a malicious user maycause a bot to traverse through pages of a web site and collect privateor proprietary data, such as who is connected with whom on a particularsocial networking web site.

Web server administrators may wish to prevent malicious users fromattacking the site, while allowing legitimate users to use the site asintended. However, determining which requests are generated by alegitimate user using a web browser and a malicious user using a bot maybe difficult.

SUMMARY

The appended claims may serve as a summary of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

In the drawings:

FIG. 1 illustrates functional units of a web browser.

FIG. 2 illustrates a computer system comprising a browser, anintermediary computer, and a web infrastructure in an exampleembodiment.

FIG. 3 illustrates detailed view of an intermediary computer in anexample embodiment.

FIG. 4 illustrates a process for determining whether a browser is alegitimate browser or a bot, and adjusting the number of browserdetection tests or countermeasures used, in an example embodiment.

FIG. 5 illustrates a computer system upon which an embodiment may beimplemented.

While each of the drawing figures illustrates a particular embodimentfor purposes of illustrating a clear example, other embodiments mayomit, add to, reorder, or modify any of the elements shown in thedrawing figures. For purposes of illustrating clear examples, one ormore figures may be described with reference to one or more otherfigures, but using the particular arrangement illustrated in the one ormore other figures is not required in other embodiments. For example,intermediary computer 230 in FIG. 2 may be described with reference toseveral components illustrated in FIG. 3 and discussed in detail below,but using the particular arrangement illustrated in FIG. 3 is notrequired in other embodiments. Furthermore, while the instructionsdiscussed in many example embodiments are HyperText Markup Language(“HTML”) and JavaScript instructions, in other embodiments, theinstructions intercepted and generated may be any other standard orproprietary instructions configured to be executed by a client computer.

DETAILED DESCRIPTION

In the following description, for the purposes of explanation, numerousspecific details are set forth in order to provide a thoroughunderstanding of the present invention. It will be apparent, however,that the present invention may be practiced without these specificdetails. In other instances, well-known structures and devices are shownin block diagram form in order to avoid unnecessarily obscuring thepresent invention. Words, such as “or”, may be inclusive or exclusiveunless expressly stated otherwise; a “set” may comprise zero, one, ormore than one elements. For example, a set of instructions may compriseone or more instructions.

Embodiments are described herein according to the following outline:

-   -   1.0 General Overview    -   2.0 Browsers, Bots, and Attacks        -   2.1 Example Browser Anatomy        -   2.2 Example Bot or “Headless Browser” Anatomy    -   3.0 Distinguishing between Legitimate Browsers and Bots        -   3.1 Implicitly Determining the Identity of a Browser        -   3.2 Detection Tests            -   3.2.1 Stack Traces            -   3.2.2 Check for Predefined Browser Objects            -   3.2.3 Attempt to Modify Protected Systems            -   3.2.4 Check whether Plugins are Installed            -   3.2.5 Check for Outdated Libraries            -   3.2.6 Timing Suppression of an Alert            -   3.2.7 Case Sensitive Header Checking or other Minor                Differences    -   4.0 Example Network Topology that Detects whether a Browser is a        Legitimate Browser or a Bot        -   4.1 Web Infrastructure        -   4.2 Intermediary Computer            -   4.2.1 Protocol Client Logic            -   4.2.2 Processing Logic            -   4.2.3 Injection Logic            -   4.2.4 Protocol Server Logic            -   4.2.5 Bot Check Logic            -   4.2.6 Reverse Logic            -   4.2.7 Configurations            -   4.2.8 Storage        -   4.3 Browser    -   5.0 Process Overview        -   5.1 Intercepting Instructions from a Content Server Computer        -   5.2 Injecting Browser Detection Tests        -   5.3 Determining whether a Browser is a Legitimate Browser or            a Bot            -   5.3.1 Testing with Dynamic Browser Detection Tests        -   5.4 Responding to a Browser that is Determined to be a Bot        -   5.5 Responding to a Browser that is Determined to be a            Legitimate Browser    -   6.0 Implementation Mechanisms—Hardware Overview    -   7.0 Other Aspects of Disclosure

1.0 General Overview

In an embodiment, a computer system is configured to improve security ofserver computers interacting with client computers through anintermediary computer, and comprises: a memory comprising processorlogic; one or more processors coupled to the memory, wherein the one ormore processors execute the processor logic, which causes the one ormore processors to: intercept, from a server computer, one or moreoriginal instructions to be sent to a browser being executed on a clientcomputer; inject, into the one or more original instructions, one ormore browser detection instructions, which when executed cause one ormore operations to be performed by an execution environment on theclient computer and send a result that represents an internal state ofthe execution environment after performing the one or more operations tothe intermediary computer; send the one or more original instructionswith the one or more browser detection instructions to the browser;receive the result and determine whether the browser is a legitimatebrowser, or a headless browser, based, at least in part, on the result

In the embodiment, the one or more operations are configured to causethe execution environment to, at least, generate a stack trace, and theresult comprises the stack trace. In an embodiment, the one or moreoperations are configured to cause the execution environment to, atleast, determine whether one or more objects are defined with one ormore aliases, and the result comprises data that indicates whether theone or more objects are defined with the one or more aliases.

In an embodiment, the processor logic further causes the one or moreprocessors to determine the browser is the legitimate browser if theresult matches a previously stored result that is associated with thelegitimate browser. In an embodiment, the processor logic further causesthe one or more processors to determine the browser is the headlessbrowser if the result matches a previously stored result that isassociated with the headless browser.

In an embodiment, the processor logic further causes the one or moreprocessors to, in response to determining the browser is a legitimatetype of browser: store a set of identification data that identifies thebrowser and indicates that the browser is legitimate; receive one ormore new instructions from the server computer to be sent to thebrowser; determine from the set of identification data that the browseris the legitimate browser, and in response, send the one or more newinstructions without additional browser detection instructions. In anembodiment, the processor logic further causes the one or moreprocessors to, in response to determining the browser is the headlessbrowser: store a set of identification data that identifies the browserand indicates that the browser is the headless browser; receive arequest for additional data from the browser; determine based, at leastin part, on the set of identification data that the browser is theheadless browser; terminate the request without sending it to the servercomputer.

In an embodiment, a computer system configured to improve security ofserver computers interacting with client computers through anintermediary computer, and comprising: a memory comprising processorlogic; one or more processors coupled to the memory, wherein the one ormore processors execute the processor logic, which causes the one ormore processors to: intercept, from a server computer, a web pagecomprising HTML, CSS and JavaScript instructions to be sent to a browserbeing executed on a client computer; inject, into the web page, one ormore browser detection JavaScript instructions, which when executedcause one or more operations to be performed by a JavaScript executionenvironment on the client computer and send a result that represents aninternal state of the JavaScript execution environment after performingthe one or more operations to the intermediary computer; send the webpage with the one or more browser detection JavaScript instructions tothe browser on the client computer; receive the result and determinewhether the browser is a legitimate browser, or a headless browser,based, at least in part, on the result.

In an embodiment, a method for improving security of a server computerinteracting with a client computer comprises: receiving, through abrowser on the client computer from the server computer, one or morebrowser detection instructions, which when executed, generate a set ofresults that represent an internal state of an execution environment andidentify the browser; executing the one or more browser detectioninstructions and generating the set of results; sending the set ofresults to the server computer; wherein the method is performed by oneor more computing devices.

In an embodiment, a method for improving security of a server computerinteracting with a client computer comprises: receiving, through abrowser on the client computer from the server computer, one or morebrowser detection JavaScript instructions, which when executed by aJavaScript execution environment, generate a set of results thatrepresent an internal state of the JavaScript execution environment andidentify the browser; executing the one or more browser detectionJavaScript instructions and generating the set of results; sending theset of results to the server computer; wherein the method is performedby one or more computing devices.

Embodiments discussed herein provide numerous benefits and improvementsover the general idea of processing data from a client computer. Theembodiments discussed here increase the resistance of server computersand database systems to computer attacks. For example, using the methodsand system discussed herein, a server computer may detect or identifythe browser, or type of browser, receiving a web page, processing theweb page, and generating one or more requests based on the web page. Atype of browser may include versions of a particular browser, one ormore commercial browsers that are known to be legitimate, one or morebrowsers that are known to be legitimate bots (such as a search engineweb crawler), one or more browsers that are known to be malicious bots,or any other set of browsers.

2.0 Browsers, Bots, and Attacks

A web browser may be a tool through which server-based applicationprograms can provide client computers with content in a dynamic, customUI. For example, in response to receiving a request for data from a webbrowser, a web server may respond with a set of instructions that defineone or more objects with one or more object identifiers. Theinstructions may use the object identifiers to define how objects may bepresented in a UI to enable human/computer interaction.

In contrast, bots traverse web pages or web sites to retrieve data from,or submit data to, one or more web servers with little, if any,human/computer interaction. For example, in response to receiving arequest for data from a bot, a web server may respond with a set ofinstructions. A bot may parse the instructions to collect data from, orto store data in, particular objects with particular object identifiers.A bot may also make requests based on an object identifier, such as theidentifier for a text field input. However, unlike a browser, a bot neednot execute the instructions that define how objects should be presentedin a UI because the bot is built to operate with little, if any,human/computer interaction. Thus, a bot may be a functionally-limitedbrowser.

For convenience of expression, a set of instructions may be referred toherein as a file or web page. A set of instructions, file, or web pageneed not have a particular type or extension, and need not be stored inpersistent storage. Furthermore a web page may comprises one or morefiles, each of which include one or more instructions for a browser toprocess or execute. While some files may be identified as a particulartype of file or having a particular set of instructions, such as an“HTML file” or “JavaScript file”, a file may include mixed content. Forexample, an HTML file may include HTML, JavaScript, Cascading StyleSheets (“CSS”), or any other standard or proprietary set ofinstructions. Furthermore, a file or web page need not be a file storedin persistent storage. A file or web page may be generated dynamicallybased on the one or more parameters in a request for the web page, datapersistently stored in a database, or one or more parameters orconfigurations.

2.1 Example Browser Anatomy

FIG. 1 illustrates functional units of a web browser. Browser 100 may bea browser that is executed on a personal computer, used to communicatewith or otherwise conceptually visit a web server, and operated by auser using the personal computer. Browser 100 is communicatively coupledwith operating system (“OS”) system application programming interface(“API”) layer 150 and OS frontend API layer 160. Other embodiments mayuse other protocols, modules, or parsers.

Browser 100 comprises protocol module 102, domain name server (“DNS”)module 104, local storage module 106, image parser 108, CSS parser 110,HTML parser 112, JavaScript parser 114, extension execution environment116, document object model (“DOM”) module 118, and JavaScript executionenvironment 120. Protocol module 102, DNS module 104, and local storagemodule 106 may send or receive data through OS System API layer 150. Forexample, protocol module 102 may send or receive data over any protocol,such as HTTP, to/from a server computer through OS system API layer 150.Data received through protocol module 102 may reference data sources byone or more domain names. DNS module 104 may resolve the one or moredomain names referenced by interfacing with one or more remote domainname servers through OS system API layer 150. Local storage module maystore or recall data from memory through OS system API layer 150.

Image parser 108, CSS Parser 110, HTML parser 112, and JavaScript parser114 may parse data received through protocol module 102. HTML parser 112may parse HTML data. CSS parser 110 may parse CSS data. JavaScriptparser 114 may parse JavaScript data. Image parser 108 may parse imagedata. Each parser may generate or update objects in a DOM maintained byDOM module 118.

Browser 100 may comprise sets of program logic implementing one or moreprogrammable engines, such as extension execution environment 116 andJavaScript execution environment 120. Extensions may be written one ormore programming languages include JavaScript, Python, Ruby, or anyother language. Each programmable engine may have access to DOM module118 and may operate on one or more objects from a DOM maintained by DOMmodule 118. For example, JavaScript execution environment 120 mayexecute JavaScript parsed by JavaScript parser 114 and in response,create, update, or delete one or more objects managed by DOM module 118,or one or more aspects of a UI presenting the one or more objects.

Browser 100 comprises rendering engine 122, interactivity module 124,and user interface 126. Each of the components may cause, through OSfrontend API layer 160, one or more objects to be presented to a userusing a client computer. Rendering engine 122 may determine how objectsare presented to a user. For example, rendering engine 122 may determinethe color, shape, orientation, position, or any other visual or audioattribute of an image, text field, button, or any other object definedby a set of received instructions. Furthermore, rendering engine 122 maycause a button to be displayed on a monitor coupled to a client computerthrough OS frontend API layer 160.

User interface 126 may determine what may be presented to a user. Forexample, user interface 126 may determine that a “submit” button shouldbe hidden until data has been entered in one or more text fields. Afterdata has been entered in the one or more text fields, user interface 126may notify rendering engine 122 to render the “submit” buttonaccordingly.

Interactivity module 124 may receive one or more inputs through OSFrontend API layer 160. For example, in response to a user pressing abutton on a mouse coupled to a client computer 299, the OS running onthe client computer may send a message to interactivity module 124,through OS frontend API layer 160, to indicate that a user pressed abutton on a mouse. Interactivity module 124 may determine that a userselected a particular button currently presented on a monitor.Interactively module 124 may notify user interface 126 or renderingengine 122 to update to update the UI accordingly.

2.2 Example Bot or “Headless Browser” Anatomy

A bot or “headless browser” may be a type of browser that includes asubset of the modules or features included in a browser used by alegitimate user, such as browser 100. For example, a bot may includeprotocol module 102, DNS module 104, local storage module 106, and HTMLparser 112. A bot need not support a UI; thus, a bot need not includerendering engine 122, interactivity module 124, and user interface 126.

Less sophisticated bots need not include one or more parsers orexecution environments. For example, a bot may be configured to look fordata embedded in a DOM defined in one or more HTML documents.Accordingly, a bot may include an HTML parser, but need not include oneor more parsers or execution environments, such as image parser 108, CSSparser 110, JavaScript parser 114, extension execution environment 116,or JavaScript execution environment 120.

More sophisticated bots may include one or more parsers or executionenvironments. For example, a more sophisticated bot may include aJavaScript engine or execution environment, such as JavaScript ExecutionEnvironment 120, which may be a run-time environment that executesJavaScript received from a web server.

3.0 Distinguishing Between Legitimate Browsers and Bots

As discussed herein, a bot may be used for various attacks against aserver computer. If a web server can determine which browsers are botsand which browsers are used by legitimate users, then the web server canstop responding to the requests sent by bots and continue to respond torequests from browsers being used by legitimate users. Additionally oralternatively, a web server can attack the bot, or the clientcomputer(s) executing the bot. However, determining whether a clientsoftware application, running on a client computer, is a bot or abrowser operated by a legitimate user can be difficult. For convenienceof expression, a browser operated by a legitimate user may be a type ofbrowser referred to herein as a legitimate browser.

Some protocols, such as HTTP, allow for browsers and bots to identifythemselves to a server. For example, a browser used by a legitimate usermay include a header with an attribute called “user-agent” in a requestfor data sent to a server computer. The value associated with the“user-agent” attribute may identify the particular browser, type ofbrowser, or bot sending the request. Ideally, a web server can determinewhether the value associated with the user-agent attribute is alegitimate browser or a bot, and respond accordingly. For example, a webserver may respond to a request from a legitimate browser with the datarequested, and ignore a request from a bot. However, a malicious bot mayspoof its identity by using the same value for the “user-agent”attribute as a legitimate browser.

3.1 Implicitly Determining the Identify of a Browser

While one or more browsers or bots may include the functional unitsdiscussed herein, each browser or bot may implement the functional unitsdifferently. Accordingly, execution environments in different browsersmay a have a different internal state after parsing or executing thesame instructions in the same web page. For example, after parsing orexecuting the same instructions, different execution environments maycreate different internal names for variables, objects, or functions.Because an execution environment is a component of a browser, “browser”or “execution environment” may be used interchangeably herein or in theprovisional application that this application claims benefit of, andpriority to.

One or more instructions may be included in a web page, which whenexecuted by a browser (or execution environment in a browser), cause thebrowser generate output that describes the internal state of thebrowser. Since the internal state of the browser may be different foreach browser, the output may be different for each browser. The outputmay be used as a fingerprint or signature to identify the particularbrowser or execution environment executing the one or more instructions.For convenience of expression, “detection instructions” or “browserdetection instructions” may be one or more instructions that whenexecuted by a browser cause the browser to generate a fingerprint orsignature to identify the browser. Detection instructions may cause theoutput used to identify the browser to be sent to one or more servercomputers. Detection instructions may cause a browser to send theresults from the browser detection test in a request for additionaldata, or separately or asynchronously with one or more requests from thebrowser for additional data, such as a different web page. A “detectiontest”, or “browser detection test”, may comprise detection instructions.Accordingly, including a detection test in a web page may mean includingdetection instructions in a web page.

For example, a particular set of instructions may cause a browser, orexecution environment in a browser, to generate or raise a “type error”.The browser may generate data indicating the source of the error, suchas a text string that identifies each function in a series of functionscalled before executing the instruction(s) that caused the browser toraise the error. The text string generated by the browser can bedifferent than another browser. By comparing the browser-generated textstring with one or more text strings generated from one or more otherbrowsers that have executed the same set of instructions, the browsermay be identified as a particular browser, or type of browser.

Identifying a browser may include determining that a browser is not aparticular browser or not a particular type of browser. For example, abrowser that generates an output may be identified as not a particularbrowser because the output does not match the output expected from theparticular browser running on a client computer.

Identifying a browser may include determining whether the browser is aparticular type of browser, such as a legitimate browser or a bot. Forexample, a computer storage system may persistently store a repositoryof expected outputs from browsers that are legitimate or a repository ofexpected outputs from known bots. A server computer may receive outputfrom a browser, and compare the received output to the repository ofexpected outputs from browsers that are legitimate. If the receivedoutput matches at least one output in the repository of expected outputsfrom legitimate browsers, then the server computer may determine thebrowser is a legitimate browser; otherwise, the server computer maydetermine that the browser is a bot. Additionally or alternatively, ifthe received output matches at least one output in the repository ofexpected outputs from known bots, then the server computer may determinethe browser is a bot; otherwise, the server computer may determine thatthe browser is a legitimate browser.

A server computer, such as the intermediary computer or a web servercomputer discussed herein, may inject one or more browser detectioninstructions into a web page, which when executed by a browser produceoutput that identifies the browser or the client computer that thebrowser is being executed on, and sends the output to the servercomputer. The server computer may determine which browser, or which typeof browser, is running on a client computer from the results, andrespond positively or negatively. Additionally or alternatively, theserver computer may determine which browser(s), or type(s) of browser,is not running on a client computer, and respond positively ornegatively. If a server computer does not receive data from a browserbased on detection instructions in a web page that is sent to a browser,then the server computer may determine that the browser is anunsophisticated bot and respond negatively. A negative response oraction may be an action that is performed in response to determiningthat a browser is a bot, likely to be a bot, or not a legitimatebrowser. A positive response or action may be an action that isperformed in response to determining that a browser is a legitimatebrowser, likely to be a legitimate browser, or not a bot. Many examplesof negative responses and positive responses are discussed furtherherein.

3.2 Detection Tests

As discussed above with respect to the “user-agent” attribute, a bot maybe configured to give a pre-programmed response to various inputs orcases to yield that same result as a legitimate browser. A servercomputer may inject detection instructions into a web page that whenexecuted by a browser on a client computer cause the browser to performone or more of the tests herein to implicitly determine which particularbrowser, or type of browser, is, or is not, being executed on the clientcomputer. If a server computer adds detection instructions into a webpage, and the server computer does not receive a response within aparticular amount of time, or before the server computer receives one ormore additional requests for data, then the server computer maydetermine that the browser is a bot.

Detection instructions added to a web page may cause a browser toperform one or more of the detection tests herein and report the resultswithout causing the browser to notify, request permission from, orotherwise alert, a user using the browser that the detectioninstructions were added to the web page or that the browser willperform, is performing, or did perform detection tests. Furthermore,detection instructions need not request user input. Thus, a web servermay inject detection instructions to a web page that allow a web serverto determine whether a browser is a legitimate browser or a bot withoutlessening a legitimate user's experience with the browser or web page.For example, detection instructions need not cause an alert to bepresented on a display with a button, which if selected may generateoutput indicating that a legitimate user is using the web page.Presenting an alert, especially one that requires the user to select abutton, interrupts a user's experience with the web page.

3.2.1 Stack Traces

A stack trace identifies one or more functions that were called leadingup to a particular instruction that is about to, is currently, or hasrecently been executed in a particular function. When an error occurs,or in response to an instruction requesting a stack trace, the browsermay generate or return a stack trace. There are many ways a stack tracemay be represented or returned. For purposes of illustrating clearexamples herein, a stack trace will be represented as a text string thatenumerates the names of one or more functions that were called before aparticular instruction was executed or the line number of the particularinstruction in the web page or file.

Each browser may generate stack traces differently. Even if two browsersboth generate stack traces that are text strings, the text strings maybe different. For example, Snippet 1 is a snippet of JavaScript codethat may be embedded in HTML and SCRIPT tags, which when executed by abrowser, causes the browser to raise an error called a “type error”.

Snippet 1:

line 01: try { line 02: null[0]( ); line 03: } line 04: catch (error) {line 05: sendToServer(error.stack); line 06: }

The instructions in lines 1 through 3, of Snippet 1, when executed by abrowser, or JavaScript execution environment in the browser, may causethe browser to raise a type error, which is caught by the block ofinstructions in lines 4 through 6. Accordingly, in response to executingline 2 in Snippet 7, the JavaScript execution environment may generate astack trace from line 2, and create an error object named “error” thatcomprises the stack trace. The function called in line 5,“sendToServer”, may be a function that sends data passed to the functionin a parameter to a server computer. Accordingly, when a browserexecutes the instruction in line 5, the browser sends the stack tracethe server computer.

Snippet 2 and Snippet 3 illustrate a character string representation ofa stack trace generated by executing the code in Snippet 1 in a firstbrowser and a second browser, respectively.

Snippet 2:

line 01: TypeError: Cannot read property ‘0’ of null line 02: attest.html:2

Snippet 3:

line 01: @file:///C:/test.html:2:5

Snippet 2 and Snippet 3 are different because the different browsersgenerate the stack traces differently. However, two browsers that arethe same may generate the same output in response to executing the codein Snippet 1.

Browsers that are similar, such as different versions of the samebrowser, may generate output that is identical or similar. A firstoutput may be similar to a second output if the first output and thesecond output both include one or more of the same elements, even thoughthe first output and the second output are not identical. For example,in line 2 of Snippet 2 and line 1 of Snippet 3, the number “2”represents the line number of the web page that included the JavaScriptinstruction that caused the browser to raise the type error (“null[0] ();”).

A first output may match a second output if the two outputs areidentical or similar. A browser may be identified if the browser'soutput matches a previously generated output by a known browser.

The results shown in Snippet 2 and Snippet 3 were generated by executingthe code in Snippet 1 at the root level (not wrapped in, or expresslycalled by, a function) in an HTML document. Accordingly, the stacktraces in Snippet 2 and Snippet 3 are a string indicating the linenumber of the web page that included the JavaScript instruction thatcaused the browser to raise the type error (“null[0] ( );”). Maliciousprogrammers may program their bots to spoof these results by looking forthe line in a file that includes the code that will trigger the typeerror, generate a string that mirrors either Snippet 2 or Snippet 3 andreplace the “2” in the string with the number of the line that has theJavaScript instruction that will cause the browser to raise the error.

To make spoofing harder, the JavaScript code that causes a browser orexecution environment to generate various errors or stack traces may beincluded in multiple places in a web page. One or more of those multipleplaces may be in unreachable code; if a server computer receives, from abrowser, a stack trace that identifies a line number of one of the oneor more multiple places with unreachable code, then the server computermay determine that the browser is a bot that tried to spoof a stacktrace.

Additionally or alternatively, the stack trace may be supplemented withadditional data, such as an error message. Snippet 4 is a JavaScriptcode snippet that includes the JavaScript code in Snippet 1. However, inline 6 of Snippet 4, a message describing the error raised is sent tothe server computer. Different browsers may generate different messages.Accordingly, the results sent to the server may be different.

Snippet 4:

line 01: try { line 02: null[0]( ); line 03: } line 04: catch (error) {line 05: sendToServer(error.stack); line 06:sendToServer(error.message); line 07: }

Snippet 5 and Snippet 6 show the message generated by executing the codein Snippet 4 in the first browser and the second browser, respectively.

Snippet 5:

line 01: Cannot read property ‘0’ of null

Snippet 6:

line 01: null has no properties

The message in Snippet 5 was generated by the same, first browser thatgenerated the stack trace in Snippet 2. The message in Snippet 6 wasgenerated by the same, second browser that generated the stack trace inSnippet 3. If a server computer receives the stack trace in Snippet 2and the message in Snippet 5, then the server computer may determinethat the browser that sent Snippet 2 and Snippet 5 is the first browser.If a server computer receives the stack trace in Snippet 3 and themessage in Snippet 6, then the server computer may determine that thebrowser that sent Snippet 3 and Snippet 6 is the second browser.

If a server computer receives mixed results, then the server computermay determine that the browser that sent the mixed results is a bot. Forexample, if a server computer receives the stack trace in Snippet 3 andthe message in Snippet 6, which were generated by different browsers,then the server computer may determine that the browser that sent thestack trace in Snippet 3 and the message in Snippet 6 is a bot trying tospoof a legitimate browser.

Additionally or alternatively, the JavaScript code that causes a browserto generate one or more errors or stack traces may be embedded in one ormore functions, which may make the stack traces more complex and harderto spoof. For example, Snippet 7 is a JavaScript code snippet thatincludes the JavaScript code in Snippet 1 embedded in a first functionand a second function, “F1” and “F2”, and then called.

Snippet 7:

line 01: (F2 = function( ) { line 02: (F1 = function( ) { line 03: try {line 04: null[0]( ); line 05: } line 06: catch (error) { line 07:sendToServer(error.stack) line 08: } line 09: })( ) line 10: })( );

Snippet 8 and Snippet 9 illustrate a stack trace generated by the codein Snippet 7 in the first browser and the second browser, respectively.

Snippet 8:

line 01: TypeError: Cannot read property ‘0’ of null line 02: at F1(test2.html:4) line 03: at F2 (test2.html:9) line 04: at test2.html:10

Snippet 9:

line 01: F2/F1@file:///C:/test2.html:4:7 line 02:F2@file:///C:/test2.html:2:4 line 03: @file:///C:/test2.html:1:3

Although Snippet 8 and Snippet 9 are different, Snippet 8 and Snippet 9both identify the line from which the browser raised the error: line 04in Snippet 7. Snippet 8 and Snippet 9 also both identify the functionsin the call chain that led to the JavaScript instruction (null[0]( );)that caused the browser to raise the type error: F1 and F2. Furthermore,both Snippet 8 and Snippet 9 identify the line numbers at which F1 andF2 are declared in Snippet 7: line 2 and line 1, respectively.

If a server computer receives the stack trace in Snippet 8, then theserver computer may determine that the browser that sent Snippet 8 isthe first browser. If the server computer receives the stack trace inSnippet 9, then the server computer may determine that the browser thatsent Snippet 9 is the second browser. If the server computer receives astack trace that is similar to Snippet 8 or Snippet 9 (e.g., identifiesthe same line numbers and function names as Snippet 8 and Snippet 9) andthe first browser and the second browser that generated Snippet 8 andSnippet 9 were categorized as legitimate browsers, then the servercomputer may determine that the browser that sent the stack trace islegitimate.

If a server computer receives a stack trace that is identical to a stacktrace generated by a browser that is known to be a bot, then the servercomputer may determine that the browser that sent the stack trace is abot. In an embodiment, a server computer receives a stack trace that isnot similar to any previously generated stack trace by a browser that isknown to be a legitimate browser, then the server computer maypessimistically determine that the browser is a bot. In an embodiment,if a server computer receives a stack trace that is not similar to anypreviously generated stack trace by a browser that is known tolegitimate browser or bot, then the server computer may optimisticallydetermine that the browser is a legitimate browser that is not yetidentified. Additionally or alternatively, the server computer mayinclude additional detection instructions in one or more additional webpages sent to the browser that cause the browser to perform one or moreof different, additional detection tests and report the results todetermine whether the browser is a legitimate browser or a bot.

In the examples above, a stack trace was generated and sent to a servercomputer by causing the browser to execute JavaScript instructions thatcause a JavaScript execution environment to raise a particular type oferror—a type error. However, one or more other types of errors may alsobe used to cause the browser to generate a stack trace and send thestack trace to a server computer.

Stack traces may be generated and sent to a server computer withoutcausing a browser interrupt a user using a web page. For example, abrowser may execute instructions in a web page with Snippet 1, whichcauses the browser to raise an error, catch the error, generate a stacktrace, and send the stack trace to a server computer without causing thebrowser to generate an alert or sound, request permission from a user,or execute any other mechanism that may notify, interrupt, or distract auser using the browser or the web page.

3.2.2 Check for Predefined Browser Objects

A server computer may inject detection instructions into a web page thatcauses a browser to determine whether one or more objects are definedwith one or more aliases and report the result(s) to the servercomputer. Using the results, the server computer may determine that thebrowser is a particular browser, or type of browser.

A browser may have one or more predefined objects that are notpredefined in one or more other browsers. An object may comprise one ormore variables, functions, methods, data structures, or applicationprogramming interfaces. For example, a browser or a sophisticated botmay define an object with an alias that matches the name of the browseror a sophisticated bot. Accordingly, if a bot was named “BigBot”, thenthe browser may define an object named, or aliased as, “BigBot”.

A browser may execute one or more instructions that test whether one ormore objects are defined and send the result to a server computer. Theserver computer may determine which particular browser, or type ofbrowser, that the browser on the client computer may be, or may not be,and respond accordingly as discussed further herein. Snippet 10 isJavaScript code that may be used to determine whether a browser orexecution environment has defined a particular object named “BigBot”,accordingly to an embodiment.

Snippet 10:

line 01: if(typeof BigBot === “undefined”) { line 02:sendToServer(“BigBot is undefined”); line 03: } line 04: else { line 05:sendToServer(“BigBot is defined”); line 06: }

In Snippet 10, line 1, if an object aliased as “BigBot” is undefined inthe browser executing Snippet 10, then control proceeds to line 2,otherwise control proceeds to line 5. If the browser executes line 2,then the browser may send data to a server computer indicating thatthere is no object defined and aliased as “BigBot”. If, however, thebrowser executes line 5, then the browser may send data to a servercomputer indicating that there is an object defined and aliased as“BigBot”.

If the server computer receives data indicating that “BigBot” isdefined, then the server computer may determine that the browser is aninstance of the “BigBot” browser, or not an instance of another browser;otherwise, the server computer may determine that the browser is not aninstance of the “BigBot” browser. If the server fails to receive datafrom a browser indicating whether or not an object is defined andaliased as “BigBot”, then the server computer may determine that thebrowser is an unsophisticated bot.

Objects may reference other objects. A particular object that ispredefined by a particular browser may also reference one or more otherpredefined objects with one or more other predefined aliases. Therefore,the detection instructions in a web page may test an object to see ifthe object also has the expected one or more predefined references tothe expected one or more predefined objects. The instructions may causethe browser to report the results to the server computer. If the servercomputer determines that the one or more other predefined objects withthe one or more predefined aliases are defined, then the server computermay determine that the browser is the suspected browser; otherwise, theserver computer may determine that the browser is a bot or not thesuspected browser.

Causing a browser to determine whether an object has a particular aliasand reporting the results, need not cause the browser to show an alertto, request permission from, or otherwise notify a legitimate user usingthe browser or the web page that the detection instructions were addedto the web page or executed. For example, causing a browser to executethe instructions in Snippet 7 need not cause the browser to present analert to a legitimate user indicating that the code is Snippet 7 isbeing performed or that the particular predefined object is, or is not,defined or aliased.

3.2.3 Attempt to Modify Protected Systems

A server computer may inject detection instructions into a web page thatis sent to a browser, which when executed by the browser on a clientcomputer, causes the browser to violate one or more protectionmechanisms in legitimate browsers and report the result to the servercomputer. The server computer may determine which particular browser, ortype of browser, that the browser on the client computer may or may notbe based on the result.

Legitimate browsers may restrict web pages from having access to thefiles or directories to which data can be written to, or read from,without notification or permission from a user. Bots, however, may allowweb pages to have access to files or directories that would normally berestricted without notifying a user. For example, a server computer mayinject one or more instructions into a web page, which when executed bya browser, attempt to cause the browser to write dummy data to a file ina root directory on a client computer, attempt to read the dummy databack from the file, and send the read dummy data back to the servercomputer without requesting authorization from a user or following oneor more security protocols. If the server computer receives the dummydata, then the server computer may determine that the browser is a bot.Additionally or alternatively, if the server computer does not receivethe dummy data, then the server computer may determine that the browseris a legitimate browser.

3.2.4 Check Whether Plugins are Installed

A server computer may inject detection instructions into a web page thatis sent to a browser, which when executed by the browser on a clientcomputer, causes the browser to determine which plugins, if any, areinstalled in the browser, and report the result to the server computer.The server computer may determine which particular browser, or type ofbrowser, that the browser on the client computer may or may not be basedon the result.

Legitimate browsers may have one or more plugins installed. Bots,however, need not have any plugins installed. For example, a legitimatebrowser may have a video plugin installed for a user to watch video. Inresponse to receiving data that a browser does not have any pluginsinstalled, the server computer may determine that the browser is a bot.Additionally or alternatively, in response to receiving data that abrowser has one or more plugins installed, the server computer maydetermine that the browser is a legitimate browser. If the servercomputer receive data that a browser has a particular plugin that isonly available for a particular browser or type of browser, then theserver computer may determine that the browser that sent the data is aninstance of the particular browser or type of browser.

3.2.5 Check for Outdated Libraries

A server computer may inject detection instructions to a web page thatis sent to a browser, which when executed by the browser on a clientcomputer, causes the browser to determine which libraries are installed,if any, and report the result to the server computer. The servercomputer may determine which particular browser, or type of browser,that the browser on the client computer may or may not be based on theresult.

Legitimate browsers may have may have up-to-date libraries installed tosupport one or more new features or plugins that present data to a user.Bots may have older libraries, if any, since a bot need not perform thelatest features to display content to users. Accordingly, in response toreceiving data that a browser has one or more libraries installed thatwere released before a particular date or time, the server computer maydetermine that the browser is a bot. Additionally or alternatively, inresponse to receiving data that a browser has one or more librariesinstalled that were not released within a particular amount of time, theserver computer may determine that the browser is a bot. Additionally oralternatively, in response to receiving data that a browser has one ormore libraries installed that were released after a particular date ortime, the server computer may determine that the browser is a legitimatebrowser. Additionally or alternatively, in response to receiving datathat a browser has one or more libraries installed that were releasedwithin a particular amount of time, the server computer may determinethat the browser is a legitimate browser.

3.2.6 Timing Suppression of an Alert

A server computer may inject detection instructions to a web page thatis sent to a browser, which when executed by the browser on a clientcomputer, causes the browser to display an alert, record the amount oftime that elapses before the alert is suppressed, and report the amountof time to the server computer. The server computer may determine whichparticular browser, or type of browser, that the browser on the clientcomputer may or may not be based on the amount of time.

A bot may suppress an alert very quickly, because the bot need notdisplay the alert and need not process the contents or context of thealert to determine whether to suppress the alert. Additionally oralternatively, a bot need not trigger the alert, or may continue toperform one or more operations without waiting for the alert to besuppressed.

In contrast, if an alert is presented to a legitimate user, the browsermust take time to render the alert on a display. Furthermore, a user maytake time to read the content of the alert, determine based on thecontext when, or which input or button to select, to suppress the alert,or close the alert to continue to use the web page. Accordingly, alegitimate user may take at least a particular amount of time to processthe alert before suppressing the alert.

In response to receiving data indicating that an alert was suppressed ator before a minimum amount of time by a browser, a server computer maydetermine that the browser is a bot. Additionally or alternatively, inresponse to receiving data indicating that an alert was suppressed at orafter a minimum amount of time, a server computer may determine that thebrowser is a legitimate browser. Additionally or alternatively, inresponse to receiving data indicating that an alert was not suppressedafter a maximum amount of time, the server computer may determine thatthe browser is a bot.

3.2.7 Case Sensitive Header Checking or Other Minor Differences

A server computer may receive data from a browser that is slightlydifferent from other browsers. In some cases, a server computer todetermine whether a browser on the client computer is, or is not, aparticular browser, or a particular type of browser, based on a slightdifference in data or content generated by the browser on the clientcomputer.

For purposes of illustrating a clear example, assume a request headersent from a bot may capitalize the words “keep-alive”, whereas alegitimate browser does not. Accordingly, if a server computer receivesa request header from a browser with the words uppercased(“Keep-Alive”), then the server computer may determine that the browseris a bot. Additionally or alternatively, if the server computer receivesa request header from a browser with the words lowercased(“keep-alive”), then the server computer may determine that the browseris a legitimate browser.

4.0 Example Network Topology that Detects Whether a Browser is aLegitimate Browser or a Bot

FIG. 2 illustrates a computer system comprising a browser, anintermediary computer, and a web infrastructure in an exampleembodiment. Referring first to FIG. 2, system 200 includes webinfrastructure 205, client computer 299, intermediary computer 230,storage 240, and configuration 232 distributed across a plurality ofinterconnected networks.

A “computer” may be one or more physical computers, virtual computers,or computing devices. As an example, a computer may be one or moreserver computers, cloud-based computers, cloud-based cluster ofcomputers, virtual machine instances or virtual machine computingelements such as virtual processors, storage and memory, data centers,storage devices, desktop computers, laptop computers, mobile devices, orany other special-purpose computing devices. Any reference to “acomputer” herein may mean one or more computers, unless expressly statedotherwise.

While each of the components listed above is illustrated as if runningon a separate, remote computer from each other, one or more of thecomponents listed above may be part of or executed on the same computer.For example, intermediary computer 230, configuration 232, storage 240,or web infrastructure 205 may be executed on the same computer, localarea, or wide area network. Additionally or alternatively, intermediarycomputer 230 may be a proxy server or layer for web infrastructure 205.Additionally or alternatively, intermediary computer 230 may be in linebetween a router and web infrastructure 205, such that intermediarycomputer 230 may intercept all network data sent to, or sent from, webinfrastructure 205 over one or more protocols. Additionally oralternatively, intermediary computer 230, or one or more modulescomprising intermediary computer 230 discussed herein, may be a softwarelayer between, or executed on, web infrastructure 205 or a component ofweb infrastructure 205. Additionally or alternatively, intermediarycomputer 230, or one or more modules comprising intermediary computer230 discussed herein, may be part of a server-side application thatresponds to requests over one or more standard or proprietary protocols,such as HTTP or any other protocol.

4.1 Web Infrastructure

Web infrastructure 205 may comprise one or more server computers thatreceive requests for data from users through one or more computers, suchas client computer 299 or intermediary computer 230. Web infrastructure205 may respond by sending data to the browser that sent the request. Asillustrated in FIG. 2, the data sent from web infrastructure 205 mayinclude instructions: HTML, JavaScript, and CSS 210. The one or morecomputers in web infrastructure 205 may, but need not, be owned ormanaged by one or more independent entities and may span across one ormore computer networks.

A server computer may be a computer that receives requests for data andresponds with data. For example, a web server computer may be anHTTP-based computer that receives HTTP requests and responds with datacomprising HTML, CSS, or JavaScript instructions. Additionally oralternatively, a server computer may respond with data that referencesdata on other server computers in, or outside of, web infrastructure205.

4.2 Intermediary Computer

Intermediary computer 230 may be an intermediary that may interceptinstructions sent from web infrastructure 205, parse or execute one ormore of the intercepted instructions, modify the interceptedinstructions, generate or add new instructions, and send the modified ornew instructions to a client computer using one or more protocols. Forexample, intermediary computer 230 may intercept HTML, JavaScript, andCSS 210, generate modified HTML, JavaScript, and CSS 290 by addingdetection instructions, and send modified HTML, JavaScript, and CSS 290to browser 295 using a HyperText Transfer Protocol (“HTTP”).Intermediary computer 230 may intercept a request from browser 295,generate a new or modified request, and send the new or modified requestto web infrastructure 205 using one or more protocols.

Intermediary computer 230 may be a server computer that one or moredomain name servers or other elements of the domain name system (“DNS”)identify in DNS records as a destination network address associated withone or more internet domain names. Accordingly, intermediary computer230 or intermediary computer 230 may receive requests sent to the one ormore domains from a browser or bot. Based on using DNS to resolve thedomain name in a request to a network address, intermediary computer 230may forward the request, or a modified request, to a server computer inweb infrastructure 205, such as original web server computer 302.

In FIG. 2, intermediary computer 230 is programmed to send instructionsto, and receive requests from, a particular type of client application:browser 295. However, in an embodiment, intermediary computer 230 may beprogrammed to send instructions to, receive requests from, or opensockets with browsers or bots.

FIG. 3 illustrates detailed view of an intermediary computer in anexample embodiment. In FIG. 3, intermediary computer 230 comprisesprotocol client logic 332, processing logic 334, injection logic 336,protocol server logic 338, bot check logic 340, and reverse logic 342.In an embodiment, each functional unit or “logic” may be a set ofcomputer executable instructions, which when executed by a computercause the computer to perform one or more of the functions or operationsdiscussed herein. In FIG. 3, intermediary computer 230 comprises morethan one function unit or logic executed on the same computer. In anembodiment, one or more functional units may be part of the same logic,software module, or package. In an embodiment, one or more of thefunctional units may be executed on one or computer computers working inconcert and communicatively coupled over one or more computer networks.In an embodiment, each of the functional units of intermediary computer230 may be implemented using any of the techniques further describedherein in connection with FIG. 5; for example, the intermediary computer230 may comprise a general-purpose computer configured with one or morestored programs which when executed cause performing the functionsdescribed herein for the intermediary computer, or a special-purposecomputer with digital logic that is configured to execute the functions,or digital logic that is used in other computing devices. While thefigures include lines that indicate various devices or modules beingcommunicatively coupled, each of the computers, devices, modules,storage, and configurations may be communicatively coupled with eachother.

4.2.1 Protocol Client Logic

Protocol client logic 332 may intercept data over any standard orproprietary protocol. For example, protocol client logic 332 mayintercept data, such as web page, over HTTP.

4.2.2 Processing Logic

Processing logic 334 may process instructions intercepted by protocolclient logic 332. Processing one or more instructions may compriseparsing or executing the one or more instructions. Accordingly,processing logic 334 may generate one or more data structures in memorythat represent, and correspond to, one or more objects in a web pagereceived from protocol client logic 332. After processing theinstructions, processing logic 334 may notify injection logic 336 tobegin rendering instructions based on the one or more data structurescreated by processing logic 334 that are currently in memory.

Processing logic 334 may make requests for additional data. For example,if instructions received from protocol client logic 332 referenceadditional instructions stored on another web server, then processinglogic 334 may request the additional instructions through protocolclient logic 332.

4.2.3 Injection Logic

Injection logic 336 may inject one or more browser detectioninstructions into a web page, which when executed cause the browser toperform one or more operations and send results back to intermediarycomputer 230. Injection logic 336 may inject one or more browserdetection instructions into a web page based on the one or more datastructures in memory, data in configuration 232 or storage 240, or onhow, or whether, a browser on a client computer responds, or does notrespond, to the browser detection instructions. Injecting or addinginstructions into a web page may mean prepending, inserting, orappending instructions into the web page or file. Additionally oralternatively, injecting instructions into a web page may meangenerating one or more new files with the new instructions andprepending, inserting, or appending one or more references to the one ormore new files in one or more files that originally defined the webpage.

Injection logic 336 may send or store data in bot check logic 340 orstorage 240 indicating which detection tests or instructions were sentto each browser or client computer or which responses to expect fromeach browser or client computer. Injection logic 336 may send or storedata in storage 240 indicating which countermeasures were sent to eachbrowser or client computer.

Additionally or alternatively, injection logic 336 may operate on theobjects created by processing logic 334 and inject countermeasureinstructions, which if executed are configured to cause a browser toperform or overcome one or more countermeasures, such as polymorphism,dynamic credentials, or any countermeasure discussed in U.S. applicationSer. No. 14/099,437, filed on Dec. 6, 2013, U.S. application Ser. No.14/159,374, filed on Jan. 20, 2014, U.S. application Ser. No.14/175,923, filed on Feb. 7, 2014, U.S. application Ser. No. 14/218,598,filed on Mar. 18, 2014, U.S. application Ser. No. 14/290,805, filed onMay 29, 2014, U.S. application Ser. No. 14/290,835, filed on May 29,2014, U.S. application Ser. No. 14/338,207, filed on Jul. 22, 2014, U.S.Provisional Application Ser. No. 61/600,145, filed on Feb. 17, 2012,U.S. application Ser. No. 13/527,025, filed on Jun. 18, 2012, U.S.application Ser. No. 14/481,835, filed on Sep. 9, 2014, U.S. applicationSer. No. 14/481,867, filed on Sep. 9, 2014, which are incorporated byreference herein.

Injection logic 336 may operate on objects or render instructions basedon one or more configurations specified in configuration 232. Injectionlogic 336 may send the rendered instructions to one or more clientcomputers through protocol server logic 338.

4.2.4 Protocol Server Logic

Protocol server logic 338 may receive the instructions generated byinjection logic 336 and send the generated instructions to clientcomputer 299. Additionally or alternatively, protocol server logic 338may intercept requests from client computer 299 and forward the requeststo bot check logic 340.

4.2.5 Bot Check Logic

Bot check logic 340 may receive the results from one or more detectiontests and determine whether the browser that sent the results is abrowser or a bot. The results may be received with a request foradditional data, such as another web page, or asynchronously.Additionally or alternatively, based on data from injection logic 336 orin storage 240 indicating that a particular browser detection test wassent to a particular browser or client computer, if bot check logic 340does not receive data indicating that the particular browser or clientcomputer did not execute the particular browser detection test within aparticular amount of time or before receiving a request for another webpage that does not include data from one or more detection tests, thenbot check logic 340 may determine that the particular browser is a bot.

Bot check logic 340 may send data to injection logic 336, or store datain storage 240, indicating whether a particular browser is a legitimatebrowser or a bot. If injection logic 335 receives data from bot checklogic 340, or storage 240, indicating that a particular browser on aclient computer is a legitimate browser, then injection logic 336 mayinject fewer, or less aggressive, detection tests or countermeasures inweb pages sent to the particular browser. If injection logic 335receives data from bot check logic 340, or storage 240, indicating thata particular browser on a client computer is a bot, then injection logic336 may inject more, or more aggressive, detection tests orcountermeasures in web pages sent to the particular browser.

4.2.6 Reverse Logic

Reverse logic 342 may translate requests intercepted by protocol serverlogic 338, which may be based on instructions generated by injectionlogic 336, into requests that would have been generated by browser 295had browser 295 received the original instructions sent from webinfrastructure 205. For example, if a request from browser 295 includesa dynamic credential generated by bot check logic 340, then reverselogic 342 may generate a new request that does not include the dynamiccredential. Reverse logic 342 may send the new request webinfrastructure 205 through protocol client logic 332 on behalf ofbrowser 295.

4.2.7 Configurations

Configuration 242 may be a database, a configuration file, or any othersystem that stores configurations: settings, preferences, or protocols.Configuration 242 may store more than one configuration for one or moreweb servers in web infrastructure 205. For example, configuration 232may include data that indicates data or web pages from one or moreserver computers in web infrastructure 205 may, or need not, be injectedwith browser detection tests or instructions. Additionally oralternatively, configuration 232 may include data that indicates data orweb pages from one or more server computers in web infrastructure 205may, or need not, be injected with instructions which perform one ormore countermeasures.

Configuration 232 may be modified by a user or administrator through oneor more computers, such intermediary computer 230, a computer in webinfrastructure 205, or any other computer. The one or more computers maypresent the user with an interface that presents the user with a sitemap. The site map may comprise a graph, wherein the nodes correspond topages and the edges between the nodes correspond to links.

The user may update configuration 232, through the interface, byselecting which links or pages to be “public” and which links or pagesare “protected”. A public web page may be a web page that need notinclude one or more detection tests or countermeasures or may berequested by any browser including a bot. A protected web page mayinclude instructions that perform one or more browser detection tests orcountermeasures or may be restricted by the server computer if theserver computer has determined that the browser requesting the protectedweb page is a bot, or has not determined that the browser is alegitimate browser.

For purposes of illustrating a clear example, assume configuration 232comprises data indicating that the help page of a web site is public,but a user profile page is protected. If intermediary computer 230receives a request for the help page, then intermediary computer 230 maysend the help page to the browser without intermediary computer 230determining, or regardless of whether intermediary computer 230 hasdetermined, that the browser is a bot or a legitimate browser. Ifintermediary computer 230 receives a request for the user profile pagefrom a browser that intermediary computer 230 has determined is a bot,then intermediary computer 230 may perform a negative action. Ifintermediary computer 230 receives a request for the user profile pagefrom a browser that intermediary computer 230 has determined islegitimate, then intermediary computer 230 may send the user profilepage to the browser; the user profile page need not include detectiontests. If intermediary computer 230 receives a request for the userprofile page from a browser that the server computer has not determinedis a bot or a legitimate browser, then intermediary computer 230 maysend a web page that includes detection tests to determine whether thebrowser is a bot or a legitimate browser. The web page may be the userprofile page if intermediary computer 230 storage 240 has dataindicating that the browser has not requested a protected page before.

4.2.8 Storage

Storage 240 may store one or more expected results from one or morebrowsers. For example, storage 240 may include a repository of outputsfrom one or more particular browsers or types of browsers.

Intermediary computer 230 or bot check logic 340 may store data instorage 240 indicating that a browser is a particular browser or type ofbrowser. Data that identifies a browser and indicates whether thebrowser is a particular browser or type of browser may be referred toherein as identification data. For example, if bot check logic 340determines that browser 295 is a legitimate browser based on resultsfrom one or more detection tests, then bot check logic 340 may storedata in storage 240 indicating that browser 295 is a legitimate browser.In response to a request for a web page, bot check logic 340 mayretrieve data indicating that browser 295 is a legitimate browser andforward the request to web infrastructure 205; furthermore, injectionlogic 336 may send the requested web page to browser 295 without addingany detection tests. In contrast, if bot check logic 340 determines thatbrowser 295 is a bot based on results from one or more detection tests,then bot check logic 340 may store data in storage 240 indicating thatbrowser 295 is a bot. In response to a request for a protected web page,bot check logic 340 may retrieve data indicating that browser 295 is abot and terminate the request without forwarding the request to webinfrastructure 205. A browser in storage 240 may be identified by one ormore values or attributes associated with the browser or the clientcomputer that the browser is executed on, such as a MAC address or an IPaddress assigned to the client computer.

Bot check logic 340 may clear or refresh data in storage 240. Forexample, bot check logic 340 may delete records in storage 240indicating that a browser is a legitimate browser or a bot after aparticular amount of time since the records were created. The particularamount of time may be defined by a user or administrator and stored inconfiguration 232.

Bot check logic 340 may update the expected output of browsers instorage 240 from browsers that are deemed to be the same browser or typeof browser. For example, if bot check logic 340 determines that abrowser is a bot, then bot check logic 340 may store the particularoutput from one or more detection tests generated by the browser instorage 240 and indicate that the output is from a bot. In response toreceiving new output from a new browser that matches the particularoutput from the one or more detection tests, then bot check logic 340may determine that the new browser is a bot.

Storage 240 may be a database, a configuration file, or any other systemor data structure that stores data. In FIG. 2, storage 240 isillustrated as if a separate computer from intermediary computer 230.Additionally or alternatively, storage 240 may be a data structurestored in memory on the one or more computers comprising intermediarycomputer 230. Additionally or alternatively, storage 240 may, at leastin part, be a data structure stored in shared memory between one or moreintermediary computers. Additionally or alternatively, intermediarycomputer 230 may, at least in part, be stored in volatile ornon-volatile memory.

4.3 Browser

Browser 295 may be a browser as described herein and executed on aclient computer, such as client computer 299. Additionally oralternatively, browser 295 may be a bot comprising one or more of thecomponents traditionally found in a browser.

5.0 Process Overview

In an embodiment, a data processing method may be configured tointercept instructions from a server computer that are directed toward abrowser, injection one or more instructions which when executed causethe client computer to perform or overcome one or more browser detectiontests or countermeasures. In an embodiment, if results from the one morebrowser detection instructions indicate that a browser is a bot, or ismore likely to be a bot, then the processing method may be configured toinject one or more instructions, which when executed cause the browserto perform or overcome one or more additional or aggressive browserdetection tests or countermeasures, or send a response to a clientcomputer. In an embodiment, if results from the one more browserdetection instructions indicate that a browser is a legitimate browser,or is more likely to be a legitimate browser, then the method may beconfigured to not inject one or more instructions, which when executedcause the browser to perform one or more countermeasures or additionalbrowser detection tests or, or send a response to a client computer.Various embodiments may use standard web protocols, such as HTTP, orstandard web-based instructions, such as HTML or JavaScript.Additionally or alternatively, other standard or proprietary protocolsmay be used. Additionally or alternatively, other standard orproprietary instructions may be used.

5.1 Intercepting Instructions from a Content Server Computer

FIG. 4 illustrates a process for determining whether a browser is alegitimate browser or a bot, and adjusting the browser detection testsor countermeasures used, in an example embodiment. In step 410, anintermediary computer intercepts, from a web server computer, a web pagewith a set of instructions that define one or more objects oroperations, to be processed, parsed, or executed by a browser on aclient computer. For example, protocol client logic 332 may receive aweb page from web infrastructure 205. The web page may comprise HTML,CSS, JavaScript, or any other type of instructions.

5.2 Injecting Browser Detection Tests

In step 420, the intermediary computer injects one or more browserdetection instructions, which when executed cause one or more operationsto be performed by an execution environment in the browser on the clientcomputer and send a result that represents the internal state of theexecution environment after performing the one or more operations to theintermediary computer. For purposes of illustrating a clear example,assume that the web page received in the previous step comprises HTML,CSS, and JavaScript instructions. Processing logic 334 may parse theinstructions. Injection logic 336 may inject one or more browserdetection instructions, such as JavaScript instructions, in the webpage, which when executed by a browser cause the browser to perform oneor more browser detection tests.

In step 430, the intermediary computer sends the one or more browserdetection tests to the browser. For example, injection logic 336 maysend the web page or the injected instructions in step 420 to browser295 through protocol server logic 338.

5.3 Determining Whether a Browser is a Legitimate Browser or a Bot

In step 440, the intermediary computer receives data from the browserthat may be used to determine whether the browser is a legitimatebrowser or a bot. For example, browser 295 may execute the injectedinstructions and return data resulting from execution of the injectedinstructions to intermediary computer 230. The data may be received bybot check logic 340 through protocol server logic 338.

In step 450, the intermediary computer determines whether the browser isa legitimate browser or a bot. Additionally or alternatively, theintermediary computer may determine whether the browser is more or lesslikely to be a legitimate browser or a bot.

Bot check logic 340 may determine based, at least in part, on theresults from one or more browser detection tests whether browser 295 isa legitimate browser or a bot. Additionally or alternatively, bot checklogic 340 may determine based, at least in part, on the results from theone or more browser detection tests which browser, or type of browser,that browser 295 may or may not be. For example, bot check logic 340 mayreceive a stack trace from browser 295. Bot check logic 340 may checkfor matching or similar stack traces stored in storage 240. If bot checklogic 340 determines that a stack trace matches a stack trace in storage240, then bot check logic 340 may determine that browser 295 is thebrowser or type of browser associated with the matching stack trace.

The expected results for each browser or type of browser may be storedin storage 240 by an administrator, through one or more computers.Additionally or alternatively, the browser detection tests may beexecuted by one or more known browsers one or more times, and theresult(s) from the browser detection tests may be stored in storage 240and associated with the browser or type of browser that generated theresult.

If a bot is preprogrammed to spoof a legitimate browser by imitating oneor more results that would be generated if the bot was a legitimatebrowser, then the results received from one or more browser detectiontest results may match or be similar to the expected results from alegitimate browser. However, other results may fail to match, or besimilar to, the same legitimate browser's results. Accordingly, if botcheck logic 340 receives results from a browser that matches the resultsof more than one legitimate browsers' results, then bot check logic 340may determine that the browser is a bot trying to spoof a legitimatebrowser. Additionally or alternatively, if bot check logic 340 receivesresults from a browser that matches the results of more than onelegitimate browsers' results, then bot check logic 340 may determinethat the browser is more likely to be a bot.

If bot check logic 340 receives data from browser 295 one or more timesthat matches, or is similar to, the expected results from a particularbrowser or type of browser, then bot check logic 340 may determine thatbrowser 295 is, or is more likely to be, that particular browser. Theparticular browser may be a legitimate browser or a bot.

If bot check logic 340 determines that a browser is a bot, or is morelikely to be a bot, then control may pass to step 460. If bot checklogic 340 determines that a browser is a legitimate browser, or is morelikely to be a legitimate browser, then control may pass to step 470.

In an embodiment, if an intermediary computer receives browser detectiontest results from a browser and is unable to match the browser detectiontest results with pre-generated or pre-stored results associated with aparticular browser or type of browser, then the intermediary computermay determine that the browser is a bot, or is more likely to be a bot.Additionally or alternatively, if an intermediary computer receivesbrowser detection test results from a browser and is unable to match thebrowser detection test results with pre-generated or pre-stored resultsassociated with a particular browser or type of browser, then theintermediary computer may store the browser detection test results instorage 240 and associate the browser detection test results with a newbrowser or type of browser. An administrator may review the browserdetection test results and determine whether the new browser or type ofbrowser should be classified as a legitimate browser or a bot.

In an embodiment, in step 420, injection logic 336 may generate a newfile and modify the web page to reference the new file. The new file maycomprise one or more browser detection instructions. The injection logic336 may send the modified web page to the browser. If the browser failsto request or download the new file, then intermediary computer 230 maydetermine that the browser is a bot. Injection logic 336 may cache thenew file. When a new web page is intercepted, injection logic may insertor append a reference into the new web page that points to the cachedfile. Additionally or alternatively, injection logic 336 may update thenew file with new, different, or modified instructions that cause abrowser to perform new, different, or modified browser detection tests.

5.3.1 Testing with Dynamic Browser Detection Tests

Injection logic 336 may inject one or more dynamic browser detectiontests into a web page. A dynamic browser detection test comprises one ormore browser detection instructions that are unique to the particularthe web page that the browser detection instructions are injected into.For example, for a stack trace browser detection test, one or morealiases assigned to one or more functions used to generate a stack tracemay be different each time injection logic 336 injects the stack trackbrowser detection test into a web page. For purposes of illustrating aclear example, notice that two aliases in Snippet 7 were assigned to twofunctions that would be identified in a stack trace if browser 295executed Snippet 7 in a web page: “F1” and “F2”. Injection logic 336 mayinject a dynamic stack trace browser test by changing one or morealiases assigned to one or more of the functions in Snippet 7 each timeinjection logic 336 injects Snippet 7 in a web page and sends the webpage to browser 295. Injection logic 336 may store the one or morechanged aliases in storage 240 and associate the changed aliases withbrowser 295 or an identifier associated with browser 295, such as an IPaddress of the client computer that browser 295 is being executed on. Ifbot check logic 340 receives a stack trace in a subsequent request frombrowser 295 that includes the changed aliases and the identifierassociated with browser 295 in storage 240, then bot check logic 340 maydetermine that browser 295 is a legitimate browser. If bot check logic340 receives a stack trace in a subsequent request from browser 295 thatincludes the identifier associated with browser 295 in storage 240, butnot the changed aliases, then bot check logic 340 may determine thatbrowser 295 is a legitimate browser.

5.4 Responding to a Browser that is Determined to be a Bot

In step 460, the intermediary computer sends additional or moreaggressive browser detection tests or countermeasures to the browser.For example, injection logic 336 may send browser 295 one or morebrowser detection instructions, which when executed, cause browser 295to generate an alert or popup to be displayed for a user to suppress,and report back to intermediary computer 230 how much time elapsed fromwhen the alert was presented until the alert was suppressed. Causing analert to be presented to a user may interrupt the workflow of a userusing a web page. Accordingly, a browser detection test that causes analert to be presented to a user may be considered a more aggressivebrowser detection test other tests.

In response to determining that a browser, such as browser 295, is abot, intermediary computer 230 may stop responding to requests for datafrom browser 295. Additionally or alternatively, in response todetermining that a browser is a bot, bot check logic 340 or injectionlogic 336 may perform one or more countermeasures discussed orreferenced herein. For example, injection logic 336 may send a bot oneor more instructions, which when executed by the bot, cause the bot towrite a massive amount of data to persistent storage by continuouslyappending a string to one or more persistently stored files, which mayhamper or stop the bot, or the underlying computer, from performing. Anintermediary computer need not inject countermeasures into a web pagethat is sent to a particular browser on a particular client computer,until after the intermediary computer determines that a particularbrowser is, or is more likely to be, a bot.

Bot check logic 340 may record data in storage 240 indicating thatbrowser 295 is, or is likely to be, a bot. For example, bot check logic340 may record the IP address, mac address, or any other identifier forbrowser 295, or the computer that browser 295 is executed on, in storage240 and associate data with the identifier that indicates browser 295 isan instance of a known bot. Bot check logic 340 may send data to one ormore web server computers, such as web infrastructure 205, indicatingthat browser 295, or the client computer that browser 295 is beingexecuted on, is, or is likely to be, a bot.

Injection logic 336 may send additional browser detection tests orcountermeasures to browser 295 by injecting the additional browserdetection test or countermeasures into subsequently intercepted webpages from web infrastructure 205 that are send to browser 295.Additionally or alternatively, injection logic 336 may asynchronouslysend additional browser detection tests or countermeasures to browser295 through AJAX or another programming language, set of instructions,or protocol.

5.5 Responding to a Browser that is Determined to be a LegitimateBrowser

In step 470, the intermediary computer may stop sending, send fewer, orsend less aggressive, browser detection tests or countermeasures to thebrowser. For example, if browser 295 is determined to be a legitimatebrowser, injection logic 336 may stop sending browser detectioninstructions, inject fewer countermeasures, or stop injectingcountermeasures in subsequent web pages sent to browser 295.

In an embodiment, in response to determining browser 295 is more likelyto be a particular legitimate browser, and before ceasing to injectcountermeasures into web pages sent to browser 295, injection logic 336may send one or more aggressive browser detection tests. If browser 295sends results back that match the expected results for the moreaggressive browser detection test associated with particular legitimatebrowser, then in response, injection logic 336 may stop injectingbrowser detection tests or countermeasures into web pages sent tobrowser 295 for at least a particular amount of time.

Bot check logic 340 may record data in storage 240 indicating thatbrowser 295 is, or is likely to be, a legitimate browser. For example,bot check logic 340 may record the IP address, mac address, or any otheridentifier for browser 295, or the computer that browser 295 is executedon, in storage 240 and associate data with the identifier that indicatesbrowser 295 is a particular legitimate browser. Bot check logic 340 maysend data to one or more web server computers, such as webinfrastructure 205, indicating that browser 295, or the client computerthat browser 295 is being executed on, is, or is likely to be, a bot.

6.0 Implementation Mechanisms—Hardware Overview

According to one embodiment, the techniques described herein areimplemented by one or more special-purpose computing devices. Thespecial-purpose computing devices may be hard-wired to perform thetechniques, or may include digital electronic devices such as one ormore application-specific integrated circuits (ASICs) or fieldprogrammable gate arrays (FPGAs) that are persistently programmed toperform the techniques, or may include one or more general purposehardware processors programmed to perform the techniques pursuant toprogram instructions in firmware, memory, other storage, or acombination. Such special-purpose computing devices may also combinecustom hard-wired logic, ASICs, or FPGAs with custom programming toaccomplish the techniques. The special-purpose computing devices may bedesktop computer systems, portable computer systems, handheld devices,networking devices or any other device that incorporates hard-wired orprogram logic to implement the techniques.

For example, FIG. 5 is a block diagram that illustrates a computersystem 500 upon which an embodiment of the invention may be implemented.Computer system 500 includes a bus 502 or other communication mechanismfor communicating information, and a hardware processor 504 coupled withbus 502 for processing information. Hardware processor 504 may be, forexample, a general purpose microprocessor.

Computer system 500 also includes a main memory 506, such as a randomaccess memory (RAM) or other dynamic storage device, coupled to bus 502for storing information and instructions to be executed by processor504. Main memory 506 also may be used for storing temporary variables orother intermediate information during execution of instructions to beexecuted by processor 504. Such instructions, when stored innon-transitory storage media accessible to processor 504, rendercomputer system 500 into a special-purpose machine that is customized toperform the operations specified in the instructions.

Computer system 500 further includes a read only memory (ROM) 508 orother static storage device coupled to bus 502 for storing staticinformation and instructions for processor 504. A storage device 510,such as a magnetic disk or optical disk, is provided and coupled to bus502 for storing information and instructions.

Computer system 500 may be coupled via bus 502 to a display 512, such asa cathode ray tube (CRT), for displaying information to a computer user.An input device 514, including alphanumeric and other keys, is coupledto bus 502 for communicating information and command selections toprocessor 504. Another type of user input device is cursor control 516,such as a mouse, a trackball, or cursor direction keys for communicatingdirection information and command selections to processor 504 and forcontrolling cursor movement on display 512. This input device typicallyhas two degrees of freedom in two axes, a first axis (e.g., x) and asecond axis (e.g., y), that allows the device to specify positions in aplane.

Computer system 500 may implement the techniques described herein usingcustomized hard-wired logic, one or more ASICs or FPGAs, firmware orprogram logic which in combination with the computer system causes orprograms computer system 500 to be a special-purpose machine. Accordingto one embodiment, the techniques herein are performed by computersystem 500 in response to processor 504 executing one or more sequencesof one or more instructions contained in main memory 506. Suchinstructions may be read into main memory 506 from another storagemedium, such as storage device 510. Execution of the sequences ofinstructions contained in main memory 506 causes processor 504 toperform the process steps described herein. In alternative embodiments,hard-wired circuitry may be used in place of or in combination withsoftware instructions.

The term “storage media” as used herein refers to any non-transitorymedia that store data or instructions that cause a machine to operationin a specific fashion. Such storage media may comprise non-volatilemedia or volatile media. Non-volatile media includes, for example,optical or magnetic disks, such as storage device 510. Volatile mediaincludes dynamic memory, such as main memory 506. Common forms ofstorage media include, for example, a floppy disk, a flexible disk, harddisk, solid state drive, magnetic tape, or any other magnetic datastorage medium, a CD-ROM, any other optical data storage medium, anyphysical medium with patterns of holes, a RAM, a PROM, and EPROM, aFLASH-EPROM, NVRAM, any other memory chip or cartridge.

Storage media is distinct from but may be used in conjunction withtransmission media. Transmission media participates in transferringinformation between storage media. For example, transmission mediaincludes coaxial cables, copper wire and fiber optics, including thewires that comprise bus 502. Transmission media can also take the formof acoustic or light waves, such as those generated during radio-waveand infra-red data communications.

Various forms of media may be involved in carrying one or more sequencesof one or more instructions to processor 504 for execution. For example,the instructions may initially be carried on a magnetic disk or solidstate drive of a remote computer. The remote computer can load theinstructions into its dynamic memory and send the instructions over atelephone line using a modem. A modem local to computer system 500 canreceive the data on the telephone line and use an infra-red transmitterto convert the data to an infra-red signal. An infra-red detector canreceive the data carried in the infra-red signal and appropriatecircuitry can place the data on bus 502. Bus 502 carries the data tomain memory 506, from which processor 504 retrieves and executes theinstructions. The instructions received by main memory 506 mayoptionally be stored on storage device 510 either before or afterexecution by processor 504.

Computer system 500 also includes a communication interface 518 coupledto bus 502. Communication interface 518 provides a two-way datacommunication coupling to a network link 520 that is connected to alocal network 522. For example, communication interface 518 may be anintegrated services digital network (ISDN) card, cable modem, satellitemodem, or a modem to provide a data communication connection to acorresponding type of telephone line. As another example, communicationinterface 518 may be a local area network (LAN) card to provide a datacommunication connection to a compatible LAN. Wireless links may also beimplemented. In any such implementation, communication interface 518sends and receives electrical, electromagnetic or optical signals thatcarry digital data streams representing various types of information.

Network link 520 typically provides data communication through one ormore networks to other data devices. For example, network link 520 mayprovide a connection through local network 522 to a host computer 524 orto data equipment operated by an Internet Service Provider (ISP) 526.ISP 526 in turn provides data communication services through the worldwide packet data communication network now commonly referred to as the“Internet” 528. Local network 522 and Internet 528 both use electrical,electromagnetic or optical signals that carry digital data streams. Thesignals through the various networks and the signals on network link 520and through communication interface 518, which carry the digital data toand from computer system 500, are example forms of transmission media.

Computer system 500 can send messages and receive data, includingprogram code, through the network(s), network link 520 and communicationinterface 518. In the Internet example, a server 530 might transmit arequested code for an application program through Internet 528, ISP 526,local network 522 and communication interface 518.

The received code may be executed by processor 504 as it is received, orstored in storage device 510, or other non-volatile storage for laterexecution.

7.0 Other Aspects of Disclosure

Using the networked computer arrangements, intermediary computer, orprocessing methods described herein, security in client-server dataprocessing may be significantly increased. Polymorphic techniquesdiscussed herein effectively reduce automated attacks. Consequently, oneor more various attacks, such as a denial of service (“DOS”) attack,credential stuffing, fake account creation, ratings or resultsmanipulation, man-in-the-browser attacks, reserving rival goods orservices, scanning for vulnerabilities, or exploitation ofvulnerabilities, are frustrated because object identifiers orpolymorphic hooks may change over time.

In the foregoing specification, embodiments of the invention have beendescribed with reference to numerous specific details that may vary fromimplementation to implementation. The specification and drawings are,accordingly, to be regarded in an illustrative rather than a restrictivesense. The sole and exclusive indicator of the scope of the invention,and what is intended by the applicants to be the scope of the invention,is the literal and equivalent scope of the set of claims that issue fromthis application, in the specific form in which such claims issue,including any subsequent correction.

What is claimed is:
 1. A computer system configured to improve securityof server computers interacting with client computers, comprising: amemory comprising processor logic; one or more processors coupled to thememory, wherein the one or more processors execute the processor logic,which causes the one or more processors to: send one or more browserdetection instructions to a browser executing on a client computer,wherein the one or more browser detection instructions, when executed,cause one or more operations to be performed by an execution environmentof the browser; wherein the one or more operations are configured tocause the execution environment to generate a result that includes, atleast, a stack trace that represents an internal state of the executionenvironment after performing the one or more operations and send theresult to the computer system; receive, from the client computer, arequest from the browser that includes the result representing theinternal state of the execution environment; determine, based, at leastin part, on the stack trace, whether to block the request.
 2. Thecomputer system of claim 1, wherein the processor logic further causesthe one or more processors to, in response to determining to block therequest, terminate the request.
 3. The computer system of claim 1,wherein the processor logic further causes the one or more processorsto, in response to determining to block to the request, send a responsethat includes one or more countermeasures.
 4. The computer system ofclaim 1, wherein the processor logic further causes the one or moreprocessors to, in response to determining to not block the request, senda response that does not include the one or more browser detectioninstructions.
 5. The computer system of claim 1, wherein the one or moreoperations are further configured to cause the execution environment togenerate an error message, wherein the result further includes the errormessage, and wherein determining whether to terminate the request isfurther based on the error message.
 6. The computer system of claim 1,wherein the one or more operations are further configured to cause theexecution environment to determine whether one or more objects aredefined with one or more aliases, wherein the result includes data thatindicates whether the one or more objects are defined with the one ormore aliases, and wherein determining whether to terminate the requestis further based on the data that indicates whether the one or moreobjects are defined with the one or more aliases.
 7. The computer systemof claim 1, wherein the one or more operations are configured to causethe execution environment to, at least, violate one or more protectionmechanisms, and the result comprises data that indicates whether theexecution environment violated the one or more protection mechanisms. 8.The computer system of claim 1, wherein the one or more operations areconfigured to cause the execution environment to, at least, determinewhether one or more plugins or libraries are installed, and the resultcomprises data that indicates which of the one or more plugins orlibraries are installed.
 9. The computer system of claim 1, wherein theone or more operations are configured to cause the execution environmentto, at least, generate an alert and an amount of time from when thealert was generated until the alert was suppressed, and the resultcomprises data that indicates the amount of time that passed from whenthe alert was generated until the alert was suppressed.
 10. The computersystem of claim 1, wherein the one or more operations are configured tocause the execution environment to, at least, generate an alert andrecord whether the alert was suppressed, and the result comprises datathat indicates whether the alert was suppressed.
 11. A method forimproving security of server computers interacting with client computerscomprising: sending one or more browser detection instructions to abrowser executing on a client computer, wherein the one or more browserdetection instructions, when executed, cause one or more operations tobe performed by an execution environment of the browser; wherein the oneor more operations are configured to cause the execution environment togenerate a result that includes, at least, a stack trace that representsan internal state of the execution environment after performing the oneor more operations and send the result to a server computer; receiving,from the client computer, a request from the browser that includes theresult representing the internal state of the execution environment;determine, based, at least in part, on the stack trace, whether to blockthe request.
 12. The method of claim 11 further comprising, in responseto determining to block the request, terminate the request.
 13. Themethod of claim 11 further comprising, in response to determining toblock to the request, send a response that includes one or morecountermeasures.
 14. The method of claim 11 further comprising, inresponse to determining to not block the request, send a response thatdoes not include the one or more browser detection instructions.
 15. Themethod of claim 11, wherein the one or more operations are furtherconfigured to cause the execution environment to generate an errormessage, wherein the result further includes the error message, andwherein determining whether to terminate the request is further based onthe error message.
 16. The method of claim 11, wherein the one or moreoperations are further configured to cause the execution environment todetermine whether one or more objects are defined with one or morealiases, wherein the result includes data that indicates whether the oneor more objects are defined with the one or more aliases, and whereindetermining whether to terminate the request is further based on thedata that indicates whether the one or more objects are defined with theone or more aliases.
 17. The method of claim 11, wherein the one or moreoperations are configured to cause the execution environment to, atleast, violate one or more protection mechanisms, and the resultcomprises data that indicates whether the execution environment violatedthe one or more protection mechanisms.
 18. The method of claim 11,wherein the one or more operations are configured to cause the executionenvironment to, at least, determine whether one or more plugins orlibraries are installed, and the result comprises data that indicateswhich of the one or more plugins or libraries are installed.
 19. Themethod of claim 11, wherein the one or more operations are configured tocause the execution environment to, at least, generate an alert and anamount of time from when the alert was generated until the alert wassuppressed, and the result comprises data that indicates the amount oftime that passed from when the alert was generated until the alert wassuppressed.
 20. The method of claim 11, wherein the one or moreoperations are configured to cause the execution environment to, atleast, generate an alert and record whether the alert was suppressed,and the result comprises data that indicates whether the alert wassuppressed.